package com.helloandroid.paso.ui.splashscreen;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;

import com.helloandroid.paso.R;
import com.helloandroid.paso.ui.mainmenu.MainMenu;
import com.helloandroid.paso.utils.Logger;

public class Main extends Activity {

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setLayout();
	}

	private void setLayout() {
		setContentView(R.layout.main);
		Handler mHandler = new Handler() {
			@Override
			public void handleMessage(Message msg) {
				Intent mMultiIntent = new Intent(Main.this, MainMenu.class);
				startActivity(mMultiIntent);
				finish();
				Logger.log("splash finished");
			}
		};
		mHandler.sendMessageDelayed(new Message(), 2000);
	}
}